@import '@/styles/utils.scss';

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation: fadeIn 0.25s forwards;
}

.confirmDialog {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  width: 100%;
  width: 536px;
  padding: 0;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  animation: scaleIn 0.25s ease forwards;
  :global(.dark) & {
    background: #1F2023;
    box-shadow: none;
    color: #e5e7eb;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 24px 0 24px;
  border: none;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 0;
  :global(.dark) & {
    color: #d1d5db;
  }
}

.closeButton {
  position: absolute;
  right: 16px;
  top: 16px;

  background: none;
  border: none;
  font-size: 22px;
  color: #151515;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1px;
  transition: all 0.3s;
  padding-bottom: 1px;
  &:hover {
    background: #F3F3F3;
  }

  :global(.dark) & {
    color: #fff;

    &:hover {
      background: #313234;
      color: #fff;
    }
  }
}

.content {
  padding: 16px 24px 0 24px;
  text-align: left;
}

.message {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;


  font-weight: 400;
  font-size: 14px;
  color: #444444;
  font-style: normal;
  :global(.dark) & {
    color: #d1d5db;
  }

  span{
    font-size: 17px;
    font-weight: bold;
    margin: 0 4px;
  }
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 24px 24px 40px 24px;
  border: none;
  margin-top: 10px;
}

.cancelButton, .confirmButton {
  flex: 1;
  min-width: 96px;
  height: 36px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  height: 40px;
  :global(.dark) & {
    border: 1px solid #3F4245;
    background: #1F2023;
    color: #fff;
  }
}

.cancelButton {
  background: #E8E8E8;
  color: #666;
  border: 1px solid #ddd;
  
  &:hover {
    background: #EEF0F4;

    :global(.dark) & {
      background: #313234;
      border: 1px solid #3F4245;
      box-shadow: none;
    }
  }
}

.confirmButton {
  background: #151515;
  color: white;
  border: 1px solid #000;
  
  &:hover {
    background: #353535;

    :global(.dark) & {
      background: #313234;
      border: 1px solid #3F4245;
      box-shadow: none;
    }
  }
}
